package org.jeecg.modules.demo.basememberprojectshop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.basememberprojectshop.entity.BaseMemberProjectShop;
import org.jeecg.modules.demo.basememberprojectshop.entity.ProjectShopInfo;
import org.jeecg.modules.demo.basememberprojectshop.mapper.BaseMemberProjectShopMapper;
import org.jeecg.modules.demo.basememberprojectshop.service.IBaseMemberProjectShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 会员已购买的项目-商品
 * @Author: jeecg-boot
 * @Date: 2022-02-11
 * @Version: V1.0
 */
@Service
public class BaseMemberProjectShopServiceImpl extends ServiceImpl<BaseMemberProjectShopMapper, BaseMemberProjectShop> implements IBaseMemberProjectShopService {
    @Autowired
    private BaseMemberProjectShopMapper baseMemberProjectShopMapper;

    //根据项目id查询商品列表
    @Override
    public List<ProjectShopInfo> getListByMemberProjectId(Integer pageNo, Integer pageSize,
                                                          String memberProjectId) {
        return baseMemberProjectShopMapper.getListByMemberProjectId(pageNo, pageSize, memberProjectId);
    }
}
